<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-html指令</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <p v-html="content">标签会被解析</p>
    <p v-text="content">标签不会被解析</p>
    <p>标签不会被解析：{{content}}</p>
</div>
<script>
    var app = new Vue({
        el:"#app",
        data:{
            content:"<h1>黑马程序员</h1>",
        }
    });
</script>
</body>
</html>